//PICCFactory��
package cn.edu.scau.cmi.yangzhichao.abstractFactory.factory;

import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.PICCBodyInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.PICCCarInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.PICCHurtInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domain.PICCTypesInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.BodyInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.CarInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.HurtInsurance;
import cn.edu.scau.cmi.yangzhichao.abstractFactory.domainAbstractClass.TypesInsurance;

/**
 * Created by yzc on 2019/3/28.
 */
public class PICCFactory extends InsuranceFactory{

    @Override
    public void show(){
    }

    @Override
    public BodyInsurance createBodyInsurance() {
        BodyInsurance bodyInsurance=new PICCBodyInsurance();
        return bodyInsurance;
    }

    @Override
    public CarInsurance createCarInsurance() {
        CarInsurance carInsurance=new PICCCarInsurance();
        return carInsurance;
    }

    @Override
    public HurtInsurance createHurtInsurance() {
        HurtInsurance hurtInsurance=new PICCHurtInsurance();
        return hurtInsurance;
    }

    @Override
    public TypesInsurance createTypesInsurance() {
        TypesInsurance typesInsurance=new PICCTypesInsurance();
        return typesInsurance;
    }
}
